package main

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func main2() {
	router := gin.New()
	router.Use(Logger())

	router.SetTrustedProxies([]string{"127.0.0.1"})
	router.GET("/r2", func(ctx *gin.Context) {
		ctx.String(http.StatusOK, "你好啊")
	})
	router.GET("/r1", func(ctx *gin.Context) {
		ctx.String(http.StatusOK, "你好啊")
	})
	router.Run("127.0.0.1:8003")
}
